package com.bwie.system.controller;

import com.bwie.common.domain.SysUser;
import com.bwie.common.result.Result;
import com.bwie.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: SysUserController
 * @Description:
 * @Author: 平安
 * @Date: 2024/4/25 9:09:19
 */
@RestController
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;


    @GetMapping("/findSysUserByUsername/{username}")
    public Result<SysUser> findSysUserByUsername(@PathVariable String username){
        SysUser sysUser = sysUserService.findSysUserByUsername(username);
        return Result.success(sysUser);
    }

}
